import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

@Configuration
@EnableDubbo(scanBasePackages = "com.wwf.service.impl")
@PropertySource("classpath:/dubbo-provider.properties")
public class TpProviderMain {
    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(TpProviderMain.class);
        annotationConfigApplicationContext.start();
        System.in.read();


    }
}
